home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_5625.txt < prev    next >
Text File  |  1994-03-01  |  514b  |  12 lines

  1. 5 ONERRORGOTO900
  2. 10 ANGLE1:MODE8:DIM:l=0:r=0:c$=CHR$(5):n$="(lr-rýsin(l/r))/2"
  3. 50 m$=n$+"     l:arc":s$="l":z=l:GOSUB500:l=z
  4. 80 m$=n$+"     r:radius":s$="r":z=r:GOSUB500:IFz<l/2/PI THEN80 ELSEr=z
  5. 100 LOCATE0,1:PRINTc$;"Area =";(l*r-r^2*SIN(l/r))/2;:z$=INPUT$(1,@):GOTO50
  6. 300 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):GOTO50
  7. 500 CLS:PRINTm$;
  8. 510 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@42;z:LOCATE0,0:IFz=<0 THEN500 ELSERETURN
  9. 900 IFERR=1 THENCLS:ONERRORGOTO0
  10. 910 IFERL=510 THENRESUME510
  11. 920 RESUME300
  12.